<?php
class Admin_Model_Access extends Zend_Acl
{
	public function __construct()
	{
		$this->addRole('1');
		$this->add(new Zend_Acl_Resource('category'));
		$this->add(new Zend_Acl_Resource('product'));
		$this->add(new Zend_Acl_Resource('user'));
		$this->allow('1','category',array('add','manage','viewedit','index','edit','getsearch','search','delete'));
		$this->allow('1','product',array('index','add','edit','getcategory','getproduct','uploadimg','uploadvideo','uploadfileimg','uploadfilevideo','upyoutube','manage','getsearch','search','viewedit','delete'));
		$this->allow('1','user',array('index','add','manage','getsearch','search','delete','viewedit','edit','active','disable'));
	}
}